package com.jake.mongo.vo;

import com.jake.mongo.constant.MongoCollections;
import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

@Data
@Document(collection = MongoCollections.USER_INFO)
public class UserInfo {

    @Field("users")
    private List<User> users;

    @Field("cname")
    private String cname;

    @Field("city")
    private String city;

}
